package com.hspedu.enum_;

/**
 * @author 谷其昊
 * @version 1.0
 * @date 2022/1/29
 * @time 16:59
 */
public class EnumExercise01 {
    public static void main(String[] args) {
        for (Week value : Week.values()) {
            System.out.println(value);
        }
    }
}
@SuppressWarnings("all")
enum Week{
    MONDAY("星期一"),TUESDAY("星期二"),
    WEDNESDAY("星期三"),THURSDAY("星期四"),
    FRIDAY("星期五"),SATURDAY("星期六"),SUNDAY("星期日");
    private String name;


    @Override
    public String toString() {
        return name;
    }

    private Week(String name) {
        this.name = name;
    }
}


